﻿<%@ Page Language="C#" MasterPageFile="~/Views/Home/Site.Master" Inherits="ProjetoComperio.SystemFramework.Web.ComperioViewPage<ProjetoComperio.DataLayer.Entities.User>" %>

<%@ Import Namespace="ProjetoComperio.Presentation.Web.GlobalResources.HtmlHelper" %>
<asp:Content ID="loginHead" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="loginContent" ContentPlaceHolderID="MainContent" runat="server">
    <% Html.EnableClientValidation(); %>
    <br />
    <fieldset>
        <legend>Controle de acesso</legend>
        <% using (Html.BeginForm())
           { %>
        <div width="100%">
            <div style="float: left; margin-left: 25px; width: 350px">
                <div>
                    <%: Html.LabelFor(user => user.UserName)%>
                </div>
                <div style="margin-top: 5px">
                    <%: Html.TextBoxFor(user => user.UserName)%>
                    <%: Html.ValidationImage(user => user.UserName)%>
                </div>
            </div>
            <div style="float: left; margin-left: 25px; width: 350px">
                <div>
                    <%: Html.LabelFor(user => user.Password)%>
                </div>
                <div style="margin-top: 5px">
                    <%: Html.PasswordFor(user => user.Password, new { style="width:160px" })%>
                    <%: Html.ValidationImage(user => user.Password)%>
                </div>
            </div>
            <br />
            <div>
                <div style="float: left; margin-left: 5px; width: 350px">
                    <input type="submit" class="Button" value="Entrar" />
                </div>
            </div>
        </div>
        <%} %>
    </fieldset>
    <br />
</asp:Content>
